//
//  UIColor+Addition.m
//  大神专制黑马行
//
//  Created by chenWei on 2017/5/16.
//  Copyright © 2017年 陈伟. All rights reserved.
//

#import "UIColor+Addition.h"

@implementation UIColor (Addition)

+(UIColor *)colorWithHex:(uint32_t)hex
{
    int r = (hex & 0xff0000) >> 16;
    int g = (hex & 0x00ff00) >> 8;
    int b = hex & 0x0000ff;
 
    return [UIColor colorWithRed:r / 255.f green:g / 255.f blue:b / 255.f alpha:1];
    
}




@end
